<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>买菜商家 - 外卖APP</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css">
    <style>
        :root {
            --primary-color: #06b6d4;
            --secondary-color: #22d3ee;
            --accent-color: #f59e0b;
            --text-primary: #1f2937;
            --text-secondary: #4b5563;
            --background-light: #f8fafc;
        }

        /* 复用基础样式 */
        body {
            margin: 0;
            padding: 0;
            background: var(--background-light);
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        }

        .phone-container {
            width: 390px;
            height: 844px;
            margin: 20px auto;
            background: white;
            position: relative;
            overflow: hidden;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
            border-radius: 40px;
        }

        .content {
            height: 100%;
            overflow-y: auto;
            background: var(--background-light);
        }

        .content::-webkit-scrollbar {
            width: 0;
        }

        .header {
            padding: 15px;
            background: white;
            position: sticky;
            top: 0;
            z-index: 100;
            display: flex;
            align-items: center;
            gap: 15px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }

        .back-button {
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-primary);
            text-decoration: none;
        }

        .header-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--text-primary);
            flex: 1;
        }

        .filter-button {
            padding: 6px 12px;
            border: 1px solid rgba(0, 0, 0, 0.1);
            border-radius: 16px;
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 13px;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .banner {
            height: 120px;
            background: linear-gradient(135deg, #22d3ee, #06b6d4);
            padding: 20px;
            color: white;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .banner-title {
            font-size: 22px;
            font-weight: 600;
            margin-bottom: 8px;
        }

        .banner-subtitle {
            font-size: 14px;
            opacity: 0.9;
        }

        .filter-tabs {
            padding: 15px;
            background: white;
            display: flex;
            gap: 10px;
            overflow-x: auto;
            position: sticky;
            top: 62px;
            z-index: 99;
        }

        .filter-tabs::-webkit-scrollbar {
            display: none;
        }

        .filter-tab {
            padding: 6px 12px;
            border: 1px solid rgba(0, 0, 0, 0.1);
            border-radius: 16px;
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 13px;
            white-space: nowrap;
            transition: all 0.2s ease;
        }

        .filter-tab.active {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }

        .filter-tab:hover, .category-tab:hover {
            opacity: 0.8;
        }

        .filter-tab:active, .category-tab:active {
            transform: scale(0.95);
        }

        .store-list {
            padding: 15px;
        }

        .store-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            margin-bottom: 15px;
            text-decoration: none;
            color: inherit;
            display: block;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
        }

        .store-card:active {
            transform: scale(0.98);
        }

        .store-card:hover {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            transform: translateY(-2px);
        }

        .store-image {
            width: 100%;
            height: 160px;
            object-fit: cover;
            transition: opacity 0.3s ease;
        }

        .store-image:not([loaded]) {
            opacity: 0;
        }

        .store-info {
            padding: 15px;
        }

        .store-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 10px;
        }

        .store-logo {
            width: 50px;
            height: 50px;
            border-radius: 8px;
            object-fit: cover;
            transition: opacity 0.3s ease;
        }

        .store-logo:not([loaded]) {
            opacity: 0;
        }

        .store-title {
            flex: 1;
        }

        .store-name {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 4px;
        }

        .store-rating {
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 13px;
        }

        .rating-score {
            color: var(--accent-color);
            font-weight: 500;
        }

        .rating-count {
            color: var(--text-secondary);
        }

        .store-meta {
            display: flex;
            align-items: center;
            gap: 15px;
            font-size: 13px;
            color: var(--text-secondary);
        }

        .store-tags {
            margin-top: 10px;
            display: flex;
            gap: 8px;
        }

        .store-tag {
            padding: 2px 8px;
            background: #f3f4f6;
            border-radius: 4px;
            font-size: 12px;
            color: var(--text-secondary);
            transition: all 0.2s ease;
        }

        .store-tag:hover {
            background: #e5e7eb;
        }

        .store-promotion {
            margin-top: 10px;
            padding: 8px;
            background: #ecfeff;
            border-radius: 4px;
            font-size: 12px;
            color: #155e75;
            display: flex;
            align-items: center;
            gap: 5px;
            position: relative;
            overflow: hidden;
        }

        .store-promotion::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                90deg,
                transparent,
                rgba(255, 255, 255, 0.2),
                transparent
            );
            animation: shine 2s infinite;
        }

        @keyframes shine {
            to {
                left: 100%;
            }
        }

        /* 添加分类筛选样式 */
        .category-tabs {
            padding: 15px;
            background: white;
            display: flex;
            gap: 10px;
            overflow-x: auto;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }

        .category-tabs::-webkit-scrollbar {
            display: none;
        }

        .category-tab {
            padding: 4px 12px;
            border: 1px solid var(--primary-color);
            border-radius: 16px;
            color: var(--primary-color);
            text-decoration: none;
            font-size: 13px;
            white-space: nowrap;
            transition: all 0.2s ease;
        }

        .category-tab.active {
            background: var(--primary-color);
            color: white;
        }
    </style>
</head>
<body>
    <div class="phone-container">
        <div class="content">
            <div class="header">
                <a href="index.html" class="back-button">
                    <i class="bi bi-chevron-left"></i>
                </a>
                <div class="header-title">买菜</div>
                <a href="#" class="filter-button">
                    <i class="bi bi-sliders"></i>
                    筛选
                </a>
            </div>

            <div class="banner">
                <div class="banner-title">新鲜蔬果 品质生活</div>
                <div class="banner-subtitle">当日采摘 极速配送</div>
            </div>

            <div class="category-tabs">
                <a href="#" class="category-tab active">全部</a>
                <a href="#" class="category-tab">蔬菜</a>
                <a href="#" class="category-tab">水果</a>
                <a href="#" class="category-tab">肉禽蛋</a>
                <a href="#" class="category-tab">海鲜水产</a>
                <a href="#" class="category-tab">米面粮油</a>
                <a href="#" class="category-tab">调味品</a>
            </div>

            <div class="filter-tabs">
                <a href="#" class="filter-tab active">综合排序</a>
                <a href="#" class="filter-tab">距离最近</a>
                <a href="#" class="filter-tab">销量最高</a>
                <a href="#" class="filter-tab">评分最高</a>
                <a href="#" class="filter-tab">起送价最低</a>
            </div>

            <div class="store-list">
                <a href="#" class="store-card">
                    <img src="https://images.unsplash.com/photo-1542838132-92c53300491e?w=800&auto=format&fit=crop" alt="每日优鲜" class="store-image">
                    <div class="store-info">
                        <div class="store-header">
                            <img src="https://images.unsplash.com/photo-1542838132-92c53300491e?w=100&auto=format&fit=crop" alt="店铺logo" class="store-logo">
                            <div class="store-title">
                                <div class="store-name">每日优鲜</div>
                                <div class="store-rating">
                                    <span class="rating-score">4.9</span>
                                    <span class="rating-count">月售3000+</span>
                                </div>
                            </div>
                        </div>
                        <div class="store-meta">
                            <span>起送 ¥30</span>
                            <span>配送 ¥5</span>
                            <span>30分钟</span>
                        </div>
                        <div class="store-tags">
                            <span class="store-tag">品牌连锁</span>
                            <span class="store-tag">生鲜配送</span>
                            <span class="store-tag">品质保证</span>
                        </div>
                        <div class="store-promotion">
                            <i class="bi bi-ticket-perforated"></i>
                            新人首单立减10元
                        </div>
                    </div>
                </a>

                <a href="#" class="store-card">
                    <img src="https://images.unsplash.com/photo-1543083477-4f785aeafaa9?w=800&auto=format&fit=crop" alt="盒马生鲜" class="store-image">
                    <div class="store-info">
                        <div class="store-header">
                            <img src="https://images.unsplash.com/photo-1542838132-92c53300491e?w=100&auto=format&fit=crop" alt="店铺logo" class="store-logo">
                            <div class="store-title">
                                <div class="store-name">盒马生鲜</div>
                                <div class="store-rating">
                                    <span class="rating-score">4.8</span>
                                    <span class="rating-count">月售2500+</span>
                                </div>
                            </div>
                        </div>
                        <div class="store-meta">
                            <span>起送 ¥40</span>
                            <span>配送 ¥6</span>
                            <span>35分钟</span>
                        </div>
                        <div class="store-tags">
                            <span class="store-tag">品牌连锁</span>
                            <span class="store-tag">生鲜直达</span>
                        </div>
                        <div class="store-promotion">
                            <i class="bi bi-ticket-perforated"></i>
                            满100减20，满200减50
                        </div>
                    </div>
                </a>

                <a href="#" class="store-card">
                    <img src="https://images.unsplash.com/photo-1550989460-0adf9ea622e2?w=800&auto=format&fit=crop" alt="叮咚买菜" class="store-image">
                    <div class="store-info">
                        <div class="store-header">
                            <img src="https://images.unsplash.com/photo-1542838132-92c53300491e?w=100&auto=format&fit=crop" alt="店铺logo" class="store-logo">
                            <div class="store-title">
                                <div class="store-name">叮咚买菜</div>
                                <div class="store-rating">
                                    <span class="rating-score">4.7</span>
                                    <span class="rating-count">月售2000+</span>
                                </div>
                            </div>
                        </div>
                        <div class="store-meta">
                            <span>起送 ¥25</span>
                            <span>配送 ¥4</span>
                            <span>40分钟</span>
                        </div>
                        <div class="store-tags">
                            <span class="store-tag">平价生鲜</span>
                            <span class="store-tag">品类齐全</span>
                        </div>
                        <div class="store-promotion">
                            <i class="bi bi-ticket-perforated"></i>
                            领券满减最高减30元
                        </div>
                    </div>
                </a>
            </div>
        </div>
    </div>
</body>
</html> 